//
//  MXPieCharView.h
//  MXArcChart
//
//  Created by 马彦 on 16/11/8.
//  Copyright © 2016年 MX. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MXBottomView.h"

typedef NS_ENUM(NSUInteger, PositionStyle){
    PositionStyleLeft = 0,
    PositionStyleCenter = 1,
    PositionStyleRight = 2,
};

@protocol PieChartViewDelegate <NSObject>

/**  按钮点击响应方法 */
- (void)PieChartViewAction;

@end

@interface MXPieChartView : UIView

@property (nonatomic, weak) id<PieChartViewDelegate> delegate;

@property (nonatomic, assign) ChartLegendStyle legendStyle;
/**  标题设置 */
@property (nonatomic, strong) NSString *titleName;
@property (nonatomic, assign) PositionStyle titleStyle;
@property (nonatomic, strong) UIColor *titleColor;
@property (nonatomic, strong) UIFont *titleFont;

/**底部显示框位置*/
@property (nonatomic, assign) PositionStyle bottomViewStyle;


@property (nonatomic, strong) NSArray *colorArray;
@property (nonatomic, strong) NSArray *nameArray;
@property (nonatomic, strong) NSArray *valueArray;
/**  相邻区域块的间距 0 --- 10 */
@property (nonatomic, assign) CGFloat sliceSpace;


@property (nonatomic, assign) CGFloat setOffLeft;
@property (nonatomic, assign) CGFloat setOffTop;
@property (nonatomic, assign) CGFloat setOffRight;
@property (nonatomic, assign) CGFloat setOffBottom;

- (void)setExtraOffsetsWithLeft:(CGFloat)left top:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom;

@end
